<?php
namespace app\api\controller;
use think\Controller;

class Plugin extends Controller
{

    public function verify()
    {
        $config =    [
            //验证码字体大小
            'fontSize'    =>    30,
            //验证码位数
            'length'      =>    4,
            'imageW' => 290,
            'imageH' => 55,
            //是否画混淆曲线
            'useCurve' => false,
            //关闭验证码杂点
            'useNoise'    =>    true,
            'codeSet' => '0123456789',
        ];
        $captcha = new Captcha($config);
        return $captcha->entry();
    }

}
